package com.zl.project.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zl.project.dao.UserDao;
import com.zl.project.pojo.User;
import com.zl.project.service.UserService;
@Service
public class UserServiceImpl implements UserService {
	
	  @Autowired
     private UserDao userDao;
	 
	 public User login(User user) {
		
		 
		return userDao.login(user);
	}

	public void register(User user) {

	    userDao.register(user);
 
	}

}
